package com.starling.core
{
	import com.starling.utils.TextureUtil;
	
	import flash.display.DisplayObject;
	import flash.display.MovieClip;

	public class InfoComponents
	{
		public static function getInfo(textureType:String ,display:DisplayObject):Object
		{
			var info:Object;
			switch(textureType)
			{
				case TextureUtil.COMP_SCROLLTEXT:
					info = new Object();
					info.textInfo = InfoTextField.getInfo(display["txt"]);
					info.scrollbar = TextureUtil.getClassName(display["scrollbar"]);
					break;
					
				case TextureUtil.COMP_TOGGLESWITCH:
					info = new Object();
					info.textInfo = InfoTextField.getInfo(display["txt"]);
					info.background = TextureUtil.getClassName(display["background"]);
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					break;
					
				case TextureUtil.COMP_CHECK:
					info = new Object();
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					info.thumb_select = TextureUtil.getClassName(display["thumb_select"]);
					break;
					
				case TextureUtil.COMP_RADIO:
					info = new Object();
					info.toggle_group = display.parent.name;
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					info.thumb_select = TextureUtil.getClassName(display["thumb_select"]);
					break;
					
				case TextureUtil.COMP_TABBAR:
					info = new Object();
					info.textInfo = InfoTextField.getInfo(display["txt"]);
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					info.thumb_select = TextureUtil.getClassName(display["thumb_select"]);
					info.thumb_down = TextureUtil.getClassName(display["thumb_down"]);
					break;
					
				case TextureUtil.COMP_SLIDER:
					info = new Object();
					info.background = TextureUtil.getClassName(display["background"]);
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					info.thumb_down = TextureUtil.getClassName(display["thumb_down"]);
					break;
					
				case TextureUtil.COMP_PROGRESSBAR:
					info = new Object();
					info.background = TextureUtil.getClassName(display["background"]);
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					break;
					
				case TextureUtil.COMP_PAGEINDICATOR:
					info = new Object();
					info.thumb_default = TextureUtil.getClassName(display["thumb_default"]);
					info.thumb_select = TextureUtil.getClassName(display["thumb_select"]);
					break;
					
				case TextureUtil.COMP_PICKERLIST:
					info = new Object();
					break;
					
				case TextureUtil.COMP_LIST:
					info = new Object();
					break;
			}
			
			return info;
		}
	}
}